package com.ilvyou.api.dao;

import com.ilvyou.core.dao.CommonDao;
import com.ilvyou.data.TableMap;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by GuanYuCai on 2016/9/13 0013.
 */
@Repository("zanDao")
public class ZanDao extends CommonDao {

    @Override
    protected Map<String, Table> getTables() {
        return TableMap.lvzan;
    }

    @Resource(name = "dsZan")
    @Override
    protected void setDatasource(DataSource dataSource) {
        setDataSource(dataSource);
    }
}
